package cn.sofwin.web.blog.service;

import cn.sofwin.core.service.BaseService;
import cn.sofwin.web.blog.entity.Article;
import cn.sofwin.web.blog.entity.User;

/**
 * 文章服务接口
 * @author ZX
 * @version 1.0
 */
public interface ArticleService extends BaseService<Article> {

    /**
     * 用户发表文章
     * @param user
     * @param title
     * @param summary
     * @param content
     */
    void publish(User user, String title, String summary, String content);

    /**
     * 修改文章
     * @param user
     * @param id
     * @param title
     * @param summary
     * @param content
     */
    void edit(User user, String id, String title, String summary, String content);


    void addReadTotal(String id);
}
